package Pablo;
import robocode.JuniorRobot;
import java.awt.Color;
public class Nuevo extends JuniorRobot {
    public void onHitWall() {
        back(20);
    }
    public void onHitByBullet() {
        back(10);
    }
    public void onScannedRobot() {
        fire(1.0);
    }
    public void run() {
        setColors(orange,blue,white,yellow,black);
        while (true) {
            ahead(100);
            turnGunRight(360);
            back(100);
            turnGunRight(360);
        }
    }
}
